package top.byteio.common.core.constants;

/**
 * 权限常量
 * @author lerryxia
 **/
public final class SecurityConstants {
    /**
     * 角色前缀
     */
    public static final String ROLE = "ROLE_";

    /**
     * 内部
     */
    public static final String FROM_INNER = "INNER";

    /**
     * 请求来源
     */
    public static final String FROM = "from";

    /**
     * REFRESH_TOKEN
     */
    public static final String REFRESH_TOKEN = "refresh_token";

    /**
     * password 模式
     */
    public static final String PASSWORD = "password";

    /**
     * {noop} 加密的特征码
     */
    public static final String NOOP = "{noop}";

    /**
     * 用户名
     */
    public static final String USERNAME_ELP = "{username}";

    /**
     * 验证码有效期,默认 60秒
     */
    public static final long CODE_TIME = 60;

    /**
     * 验证码长度
     */
    public static final String CODE_SIZE = "8";

    /**
     * 客户端模式
     */
    public static final String CLIENT_CREDENTIALS = "client_credentials";

    /**
     * 客户端ID
     */
    public static final String CLIENT_ID = "clientId";

    /**
     * 邮箱登陆 参数名称
     */
    public static final String EMAIL_LOGIN_TYPE = "email";
    
}
